﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Invoicing.Model.Products;
using Invoicing.Command.Products;
namespace Invoicing.Logic.Products
{
    public class ProductCategoryLogic
    {
        public static ProductCategoryModel CreateNew(ProductCategoryModel model)
        {
            return ProductCategoryCommand.CreateNew(model);
        }

        public static void Update(ProductCategoryModel model)
        {
            ProductCategoryCommand.Update(model);
        }


        public static ProductCategoryModel GetModel(int id)
        {
            return ProductCategoryCommand.GetModel(id);
        }

        public static ProductCategoryCollection GetCategories(ProductCategoryQuery sea)
        {
            return ProductCategoryCommand.GetCategories(sea);
        }

        public static void Delete(int id)
        {
            ProductCategoryCommand.Delete(id);
        }
    }
}
